<meta charset="UTF-8">
<?php

require ('./lib/init.php');
if (!acc()) {
    header('Location:login.php');
}
// 查询登录用户的值
$username = $_COOKIE['user'];
$sql = "select role_name from user left join role on user.role_id = role.role_id where name = '$username'";
$userinfo=mGetRow($sql);
include (ROOT . '/view/admin/admin.html');



?>
